package com.hotel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.dto.ReservationDTO;
import com.hotel.dto.ReservationPageQueryDTO;
import com.hotel.entity.Reservation;
import com.hotel.result.PageResult;
import com.hotel.vo.ReservationDetailVO;

public interface ReservationService extends IService<Reservation> {
    /**
     * 预约分页查询
     * @param reservationPageQueryDTO
     * @return
     */
    PageResult pageQuery(ReservationPageQueryDTO reservationPageQueryDTO);

    /**
     * 根据id查询预约信息
     * @param id
     * @return
     */
    ReservationDetailVO getDetailById(Integer id);

    /**
     * 修改预约信息
     * @param reservationDTO
     */
    void updateReservation(ReservationDTO reservationDTO);

    /**
     * 取消预约
     * @param id
     */
    void cancel(Integer id);
}
